//
//  UIButton+Extension.m
//  BIBILILI
//
//  Created by WTFKL on 2017/9/19.
//  Copyright © 2017年 WTF. All rights reserved.
//

#import "UIButton+Extension.h"

@implementation UIButton (Extension)



-(UIButton*)initButtonWithFrame:(CGRect)frame title:(NSString *)title imageName:(NSString *)imageName{
    UIButton * button = [[UIButton alloc] initWithFrame:frame];
    [button setTitle:title forState:UIControlStateNormal];
    [button setImage:[UIImage imageNamed:imageName] forState:UIControlStateNormal];
    button.titleLabel.font = [UIFont systemFontOfSize:17];
    return button;
}

@end
